package com.ggkt.common.utils.enums;
import java.io.Serializable;
import java.util.EnumSet;
import java.util.List;
import java.util.stream.Collectors;
/**
 * 
 * Title: GenderEnum
 * Description: 枚举类实例
 * @author ggkt
 *
 */
public enum GenderEnum implements Serializable {
    MALE("男"),FEMALE("女"),UNKNOWN("未知");
    private String desc;
    private GenderEnum(String desc) {
        this.desc = desc;
    }
    public String desc() {
        return this.desc;
    }

    public static List<String> asList() {
        EnumSet<GenderEnum> enumSet = EnumSet.allOf(GenderEnum.class);
        return enumSet.stream().map(Enum::name).collect(Collectors.toList());
    }
}
